package com.victor.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.victor.dao.AgeDao;
import com.victor.entity.Age;
import com.victor.service.AgeService;

@Service
public class AgeServiceImpl implements AgeService {

	@Autowired
	private AgeDao dao;

	@Override
	public boolean batchDelete(int[] ids) {
		return dao.batchDelete(ids) > 0 ? true : false;
	}

	@Override
	public boolean insert(Age record) {
		return dao.insert(record) > 0 ? true : false;
	}

	@Override
	public Age findById(Integer aId) {
		return dao.findById(aId);
	}

	@Override
	public boolean update(Age record) {
		return dao.update(record) > 0 ? true : false;
	}

	@Override
	public List<Age> getAge() {
		return dao.getAge();
	}

}
